import login from './src/loginService'
import system from './src/systemService'
import options from './src/optionsService'
import personal from './src/personalService'
import order from './src/orderService'
import airOnlineShop from './src/airOnlineShopService'
import airIssueRule from './src/airIssueRuleService'
import airB2bPayAccount from './src/airB2bPayAccountService'
import airB2bIssueAccount from './src/airB2bIssueAccountService'
import airUserB2bAccount from './src/airUserB2bAccountService'
import eterm from './src/etermService'
import airUserB2cAccount from './src/airUserB2cAccountService'
import report from './src/reportService'
import airRefund from './src/airRefundService'
import policy from './src/policyService'
import airCustomerRule from './src/airCustomerRuleService'

// // 在这个里面注册服务
const Service = {
  system,
  login,
  options,
  personal,
  order,
  airOnlineShop,
  airIssueRule,
  airB2bPayAccount,
  airB2bIssueAccount,
  airUserB2bAccount,
  eterm,
  airUserB2cAccount,
  report,
  airRefund,
  policy,
  airCustomerRule
}

// install方法不做任何修改
function install (Clazz) {
  Clazz.prototype.$service = Service
}

/*
 * 使用方法
 * this.$service.xxx.function()
 */

export default {
  install
}
